home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5985 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.microsoft.com!news
  2. From: a-cnadc@microsoft.com (Dann Corbit)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Tool for converting C++ to C?
  5. Date: 7 Feb 1996 18:37:18 GMT
  6. Organization: Microsoft Corporation
  7. Message-ID: <4fargu$2st@news.microsoft.com>
  8. References: <3117842D.41C67EA6@uni-paderborn.de>
  9. NNTP-Posting-Host: 157.57.171.202
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.93.14
  12.  
  13. In article <3117842D.41C67EA6@uni-paderborn.de>, alpha@uni-paderborn.de says...
  14. >
  15. >Hallo everybody,
  16. >
  17. >is there a tool that converts C++ source code to C source code?
  18. >Can GNU C++ do this?  How?
  19. >
  20. >Answers by e-mail prefered.
  21. >
  22. >Thanks in advance
  23. >
  24. >Andreas
  25. Many C++ compilers will preprocess the C++ source and produce C.
  26. Real ugly C.  I don't know if GNU can do it, but if you check the
  27. build settings there may be a preprocess to standard output 
  28. switch.  The best way to translate any kind of application is
  29. to do it by hand.  If you need C because you don't have a C++
  30. compiler on some particular architecture but you do have C, 
  31. preprocessing may produce something that compiles, but I would 
  32. hate to have to maintain it.
  33. -- 
  34. The opinions expressed in this message are my own personal views 
  35. and do not reflect the official views of Microsoft Corporation.
  36.  
  37.